package com.spring.test;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.spring.aop.CustomerService;

public class App {
	
	@Test
	public void testApp(){
		ApplicationContext ct = new ClassPathXmlApplicationContext("applicationContext.xml");
		CustomerService cust = (CustomerService) ct.getBean("customerServiceProxy");
		System.out.println("*************************");
		cust.printName();
		System.out.println("*************************");
		cust.printURL();
		System.out.println("*************************");
		try {
			cust.printThrowException();
		} catch (Exception e) {
			
		}
	}

}
